.class public Lcom/estrongs/android/widget/RealViewSwitcher;
.super Landroid/widget/ViewAnimator;
.source "RealViewSwitcher.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/widget/RealViewSwitcher$b;
    }
.end annotation


# static fields
.field private static final F:Landroid/view/animation/Interpolator;


# instance fields
.field private A:I

.field private B:I

.field C:F

.field private D:Z

.field private E:Z

.field private a:F

.field protected b:Landroid/widget/Scroller;

.field private c:Landroid/view/VelocityTracker;

.field private d:I

.field private e:I

.field private f:F

.field private g:F

.field public h:I

.field protected i:I

.field protected j:I

.field private k:I

.field private l:Z

.field private m:I

.field private n:I

.field private o:I

.field private p:Landroid/content/Context;

.field private q:Z

.field private r:Z

.field private s:Z

.field protected t:Z

.field private u:Z

.field private v:Z

.field private w:Z

.field private x:Z

.field private y:Z

.field protected z:Lcom/estrongs/android/widget/RealViewSwitcher$b;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    new-instance v0, Lcom/estrongs/android/widget/RealViewSwitcher$a;

    invoke-direct {v0}, Lcom/estrongs/android/widget/RealViewSwitcher$a;-><init>()V

    sput-object v0, Lcom/estrongs/android/widget/RealViewSwitcher;->F:Landroid/view/animation/Interpolator;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .locals 4

    .line 1
    invoke-direct {p0, p1}, Landroid/widget/ViewAnimator;-><init>(Landroid/content/Context;)V

    const/4 v0, -0x1

    .line 2
    iput v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->d:I

    const/4 v1, 0x0

    .line 3
    iput v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->e:I

    .line 4
    iput v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    const/4 v2, -0x2

    .line 5
    iput v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->j:I

    .line 6
    iput v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->k:I

    const/4 v2, 0x1

    .line 7
    iput-boolean v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->l:Z

    .line 8
    iput v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->m:I

    .line 9
    iput v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    .line 10
    iput v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->o:I

    const/4 v3, 0x0

    .line 11
    iput-object v3, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->p:Landroid/content/Context;

    .line 12
    iput-boolean v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->q:Z

    iput-boolean v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->r:Z

    iput-boolean v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->s:Z

    .line 13
    iput-boolean v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->t:Z

    .line 14
    iput-boolean v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->u:Z

    .line 15
    iput-boolean v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->v:Z

    .line 16
    iput-boolean v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->w:Z

    .line 17
    iput-boolean v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->x:Z

    .line 18
    iput-boolean v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->y:Z

    .line 19
    iput-object v3, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->z:Lcom/estrongs/android/widget/RealViewSwitcher$b;

    .line 20
    iput v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->A:I

    .line 21
    iput v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->B:I

    const/high16 v0, -0x40800000    # -1.0f

    .line 22
    iput v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->C:F

    .line 23
    iput-boolean v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->D:Z

    .line 24
    iput-boolean v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->E:Z

    .line 25
    iput-object p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->p:Landroid/content/Context;

    .line 26
    invoke-direct {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->i()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 3

    .line 27
    invoke-direct {p0, p1, p2}, Landroid/widget/ViewAnimator;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const/4 p2, -0x1

    .line 28
    iput p2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->d:I

    const/4 v0, 0x0

    .line 29
    iput v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->e:I

    .line 30
    iput v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    const/4 v1, -0x2

    .line 31
    iput v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->j:I

    .line 32
    iput v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->k:I

    const/4 v1, 0x1

    .line 33
    iput-boolean v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->l:Z

    .line 34
    iput v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->m:I

    .line 35
    iput v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    .line 36
    iput p2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->o:I

    const/4 v2, 0x0

    .line 37
    iput-object v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->p:Landroid/content/Context;

    .line 38
    iput-boolean v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->q:Z

    iput-boolean v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->r:Z

    iput-boolean v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->s:Z

    .line 39
    iput-boolean v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->t:Z

    .line 40
    iput-boolean v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->u:Z

    .line 41
    iput-boolean v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->v:Z

    .line 42
    iput-boolean v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->w:Z

    .line 43
    iput-boolean v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->x:Z

    .line 44
    iput-boolean v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->y:Z

    .line 45
    iput-object v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->z:Lcom/estrongs/android/widget/RealViewSwitcher$b;

    .line 46
    iput p2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->A:I

    .line 47
    iput p2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->B:I

    const/high16 p2, -0x40800000    # -1.0f

    .line 48
    iput p2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->C:F

    .line 49
    iput-boolean v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->D:Z

    .line 50
    iput-boolean v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->E:Z

    .line 51
    iput-object p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->p:Landroid/content/Context;

    .line 52
    invoke-direct {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->i()V

    return-void
.end method

.method private b(I)I
    .locals 0

    return p1
.end method

.method private c(I)I
    .locals 3

    const/4 v0, 0x0

    if-gez p1, :cond_0

    return v0

    .line 1
    :cond_0
    iget v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    if-lt p1, v1, :cond_1

    add-int/lit8 p1, p1, 0x1

    .line 2
    iget v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->m:I

    mul-int p1, p1, v0

    return p1

    .line 3
    :cond_1
    iget v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->m:I

    mul-int p1, p1, v1

    iget-boolean v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->t:Z

    if-eqz v2, :cond_2

    move v0, v1

    :cond_2
    add-int/2addr p1, v0

    return p1
.end method

.method private h()V
    .locals 2

    .line 1
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getChildCount()I

    move-result v0

    iput v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    const/4 v1, 0x2

    if-ge v0, v1, :cond_0

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->t:Z

    goto :goto_0

    .line 3
    :cond_0
    iget-boolean v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->q:Z

    if-eqz v0, :cond_1

    const/4 v0, 0x1

    .line 4
    iput-boolean v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->t:Z

    :cond_1
    :goto_0
    return-void
.end method

.method private i()V
    .locals 3
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    .line 1
    new-instance v0, Landroid/widget/Scroller;

    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getContext()Landroid/content/Context;

    move-result-object v1

    sget-object v2, Lcom/estrongs/android/widget/RealViewSwitcher;->F:Landroid/view/animation/Interpolator;

    invoke-direct {v0, v1, v2}, Landroid/widget/Scroller;-><init>(Landroid/content/Context;Landroid/view/animation/Interpolator;)V

    iput-object v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->b:Landroid/widget/Scroller;

    .line 2
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;

    move-result-object v0

    .line 3
    invoke-virtual {v0}, Landroid/view/ViewConfiguration;->getScaledTouchSlop()I

    move-result v1

    iput v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->h:I

    .line 4
    invoke-virtual {v0}, Landroid/view/ViewConfiguration;->getScaledMaximumFlingVelocity()I

    move-result v0

    int-to-float v0, v0

    iput v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->a:F

    return-void
.end method

.method private j()V
    .locals 6

    const/4 v0, 0x0

    .line 1
    invoke-virtual {p0, v0}, Landroid/widget/ViewAnimator;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-virtual {v0}, Landroid/view/View;->getWidth()I

    move-result v1

    iget v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    const/4 v3, 0x1

    sub-int/2addr v2, v3

    invoke-direct {p0, v2}, Lcom/estrongs/android/widget/RealViewSwitcher;->c(I)I

    move-result v2

    add-int/2addr v1, v2

    invoke-virtual {v0}, Landroid/view/View;->getTop()I

    move-result v2

    .line 3
    invoke-virtual {v0}, Landroid/view/View;->getWidth()I

    move-result v4

    mul-int/lit8 v4, v4, 0x2

    iget v5, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    sub-int/2addr v5, v3

    invoke-direct {p0, v5}, Lcom/estrongs/android/widget/RealViewSwitcher;->c(I)I

    move-result v5

    add-int/2addr v4, v5

    invoke-virtual {v0}, Landroid/view/View;->getBottom()I

    move-result v5

    .line 4
    invoke-virtual {v0, v1, v2, v4, v5}, Landroid/view/View;->layout(IIII)V

    .line 5
    iput-boolean v3, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->v:Z

    return-void
.end method

.method private k()V
    .locals 6

    .line 1
    iget v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    const/4 v1, 0x1

    sub-int/2addr v0, v1

    invoke-virtual {p0, v0}, Landroid/widget/ViewAnimator;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    if-nez v0, :cond_0

    return-void

    :cond_0
    const/4 v2, 0x0

    .line 2
    invoke-virtual {v0}, Landroid/view/View;->getTop()I

    move-result v3

    invoke-virtual {v0}, Landroid/view/View;->getWidth()I

    move-result v4

    invoke-virtual {v0}, Landroid/view/View;->getBottom()I

    move-result v5

    invoke-virtual {v0, v2, v3, v4, v5}, Landroid/view/View;->layout(IIII)V

    .line 3
    iput-boolean v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->u:Z

    return-void
.end method

.method private l()V
    .locals 6

    const/4 v0, 0x0

    .line 1
    invoke-virtual {p0, v0}, Landroid/widget/ViewAnimator;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    if-nez v1, :cond_0

    return-void

    .line 2
    :cond_0
    iget v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->m:I

    invoke-virtual {v1}, Landroid/view/View;->getTop()I

    move-result v3

    invoke-virtual {v1}, Landroid/view/View;->getWidth()I

    move-result v4

    iget v5, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->m:I

    add-int/2addr v4, v5

    invoke-virtual {v1}, Landroid/view/View;->getBottom()I

    move-result v5

    invoke-virtual {v1, v2, v3, v4, v5}, Landroid/view/View;->layout(IIII)V

    .line 3
    iput-boolean v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->v:Z

    return-void
.end method

.method private m()V
    .locals 5

    .line 1
    iget v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    add-int/lit8 v0, v0, -0x1

    invoke-virtual {p0, v0}, Landroid/widget/ViewAnimator;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    if-nez v0, :cond_0

    return-void

    .line 2
    :cond_0
    iget v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    add-int/lit8 v1, v1, -0x1

    invoke-direct {p0, v1}, Lcom/estrongs/android/widget/RealViewSwitcher;->c(I)I

    move-result v1

    invoke-virtual {v0}, Landroid/view/View;->getTop()I

    move-result v2

    invoke-virtual {v0}, Landroid/view/View;->getWidth()I

    move-result v3

    iget v4, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    add-int/lit8 v4, v4, -0x1

    invoke-direct {p0, v4}, Lcom/estrongs/android/widget/RealViewSwitcher;->c(I)I

    move-result v4

    add-int/2addr v3, v4

    invoke-virtual {v0}, Landroid/view/View;->getBottom()I

    move-result v4

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/view/View;->layout(IIII)V

    const/4 v0, 0x0

    .line 3
    iput-boolean v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->u:Z

    return-void
.end method


# virtual methods
.method public a(I)V
    .locals 7

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->b:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->isFinished()Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    .line 5
    :cond_0
    iput p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->j:I

    if-gez p1, :cond_1

    .line 6
    iget v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    add-int/lit8 v0, v0, -0x1

    goto :goto_0

    .line 7
    :cond_1
    iget v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    if-lt p1, v0, :cond_2

    const/4 v0, 0x0

    goto :goto_0

    :cond_2
    move v0, p1

    .line 8
    :goto_0
    iget-object v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->z:Lcom/estrongs/android/widget/RealViewSwitcher$b;

    if-eqz v1, :cond_3

    .line 9
    invoke-interface {v1, v0}, Lcom/estrongs/android/widget/RealViewSwitcher$b;->c(I)V

    .line 10
    :cond_3
    invoke-direct {p0, p1}, Lcom/estrongs/android/widget/RealViewSwitcher;->c(I)I

    move-result p1

    .line 11
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getScrollX()I

    move-result v0

    sub-int v4, p1, v0

    .line 12
    invoke-static {v4}, Ljava/lang/Math;->abs(I)I

    move-result p1

    mul-int/lit16 p1, p1, 0x3e8

    iget v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->m:I

    div-int/2addr p1, v0

    const/16 v0, 0x258

    invoke-static {p1, v0}, Ljava/lang/Math;->min(II)I

    move-result v6

    .line 13
    iget-object v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->b:Landroid/widget/Scroller;

    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getScrollX()I

    move-result v2

    const/4 v3, 0x0

    const/4 v5, 0x0

    invoke-virtual/range {v1 .. v6}, Landroid/widget/Scroller;->startScroll(IIIII)V

    .line 14
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->invalidate()V

    return-void
.end method

.method public a(II)V
    .locals 0

    .line 2
    iput p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->A:I

    .line 3
    iput p2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->B:I

    return-void
.end method

.method public a(IZ)V
    .locals 1

    .line 15
    invoke-super {p0}, Landroid/widget/ViewAnimator;->getInAnimation()Landroid/view/animation/Animation;

    move-result-object v0

    if-nez v0, :cond_0

    invoke-super {p0}, Landroid/widget/ViewAnimator;->getOutAnimation()Landroid/view/animation/Animation;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 16
    :cond_0
    invoke-super {p0, p1}, Landroid/widget/ViewAnimator;->setDisplayedChild(I)V

    .line 17
    :cond_1
    invoke-direct {p0, p1}, Lcom/estrongs/android/widget/RealViewSwitcher;->b(I)I

    const/4 v0, -0x1

    if-ne p1, v0, :cond_2

    return-void

    :cond_2
    if-eqz p2, :cond_3

    .line 18
    iput p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->k:I

    .line 19
    :cond_3
    iput p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    .line 20
    invoke-direct {p0, p1}, Lcom/estrongs/android/widget/RealViewSwitcher;->c(I)I

    move-result p1

    const/4 p2, 0x0

    invoke-virtual {p0, p1, p2}, Landroid/widget/ViewAnimator;->scrollTo(II)V

    .line 21
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->invalidate()V

    return-void
.end method

.method public a(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->r:Z

    return-void
.end method

.method public addView(Landroid/view/View;)V
    .locals 1

    const/4 v0, -0x1

    .line 1
    invoke-virtual {p0, p1, v0}, Lcom/estrongs/android/widget/RealViewSwitcher;->addView(Landroid/view/View;I)V

    return-void
.end method

.method public addView(Landroid/view/View;I)V
    .locals 1

    const/4 v0, -0x2

    .line 2
    iput v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->k:I

    const/4 v0, 0x1

    .line 3
    iput-boolean v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->w:Z

    const/4 v0, 0x0

    .line 4
    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    .line 5
    invoke-super {p0, p1, p2}, Landroid/widget/ViewAnimator;->addView(Landroid/view/View;I)V

    .line 6
    invoke-direct {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->h()V

    .line 7
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->requestLayout()V

    return-void
.end method

.method public b(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->q:Z

    .line 2
    iput-boolean p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->t:Z

    return-void
.end method

.method public c(Z)V
    .locals 0

    .line 4
    iput-boolean p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->s:Z

    return-void
.end method

.method public computeScroll()V
    .locals 6

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->b:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->computeScrollOffset()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->b:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->getCurrX()I

    move-result v0

    iget-object v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->b:Landroid/widget/Scroller;

    invoke-virtual {v1}, Landroid/widget/Scroller;->getCurrY()I

    move-result v1

    invoke-virtual {p0, v0, v1}, Landroid/widget/ViewAnimator;->scrollTo(II)V

    .line 3
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->postInvalidate()V

    goto :goto_1

    .line 4
    :cond_0
    iget v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->j:I

    const/4 v1, -0x2

    if-eq v0, v1, :cond_7

    const/4 v2, -0x1

    .line 5
    iput v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    const/4 v3, 0x1

    const/4 v4, 0x0

    if-gez v0, :cond_1

    .line 6
    iget v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    add-int/lit8 v2, v0, -0x1

    goto :goto_0

    .line 7
    :cond_1
    iget v5, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    if-lt v0, v5, :cond_2

    const/4 v2, 0x0

    goto :goto_0

    :cond_2
    const/4 v3, 0x0

    .line 8
    :goto_0
    iget-boolean v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->v:Z

    if-eqz v0, :cond_3

    .line 9
    invoke-direct {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->l()V

    .line 10
    :cond_3
    iget-boolean v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->u:Z

    if-eqz v0, :cond_4

    .line 11
    invoke-direct {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->m()V

    :cond_4
    if-eqz v3, :cond_5

    .line 12
    invoke-virtual {p0, v2, v4}, Lcom/estrongs/android/widget/RealViewSwitcher;->a(IZ)V

    .line 13
    :cond_5
    iget-object v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->z:Lcom/estrongs/android/widget/RealViewSwitcher$b;

    if-eqz v0, :cond_6

    .line 14
    iget v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    invoke-interface {v0, v2}, Lcom/estrongs/android/widget/RealViewSwitcher$b;->b(I)V

    .line 15
    iget v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->k:I

    iget v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    if-eq v0, v2, :cond_6

    .line 16
    iput v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->k:I

    .line 17
    iget-object v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->z:Lcom/estrongs/android/widget/RealViewSwitcher$b;

    invoke-interface {v0, v2}, Lcom/estrongs/android/widget/RealViewSwitcher$b;->d(I)V

    .line 18
    :cond_6
    iput v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->j:I

    .line 19
    iput-boolean v4, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->y:Z

    :cond_7
    :goto_1
    return-void
.end method

.method public e()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->E:Z

    return v0
.end method

.method public f()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->D:Z

    return v0
.end method

.method public g()V
    .locals 3

    .line 1
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getWidth()I

    move-result v0

    .line 2
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getScrollX()I

    move-result v1

    div-int/lit8 v2, v0, 0x2

    add-int/2addr v1, v2

    div-int/2addr v1, v0

    .line 3
    iget-boolean v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->t:Z

    if-eqz v0, :cond_0

    add-int/lit8 v1, v1, -0x1

    .line 4
    :cond_0
    invoke-virtual {p0, v1}, Lcom/estrongs/android/widget/RealViewSwitcher;->a(I)V

    return-void
.end method

.method public getCurrentChildIndex()I
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->getCurrentScreen()I

    move-result v0

    return v0
.end method

.method public getCurrentScreen()I
    .locals 1

    .line 1
    iget v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    return v0
.end method

.method public getWindowListManager()Les/hy;
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->p:Landroid/content/Context;

    instance-of v1, v0, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    if-eqz v1, :cond_0

    .line 2
    check-cast v0, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->g0()Les/hy;

    move-result-object v0

    return-object v0

    .line 3
    :cond_0
    new-instance v0, Les/hy;

    invoke-direct {v0}, Les/hy;-><init>()V

    return-object v0
.end method

.method public onInterceptTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 6

    .line 1
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getChildCount()I

    move-result v0

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-ne v0, v1, :cond_0

    return v2

    .line 2
    :cond_0
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    .line 3
    iget-object v3, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->c:Landroid/view/VelocityTracker;

    if-nez v3, :cond_1

    .line 4
    invoke-static {}, Landroid/view/VelocityTracker;->obtain()Landroid/view/VelocityTracker;

    move-result-object v3

    iput-object v3, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->c:Landroid/view/VelocityTracker;

    .line 5
    invoke-virtual {v3}, Landroid/view/VelocityTracker;->clear()V

    .line 6
    :cond_1
    iget-object v3, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->c:Landroid/view/VelocityTracker;

    invoke-virtual {v3, p1}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V

    .line 7
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v3

    if-nez v0, :cond_2

    .line 8
    iput v3, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->C:F

    .line 9
    :cond_2
    iget v3, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->C:F

    iget v4, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->A:I

    int-to-float v4, v4

    cmpg-float v4, v3, v4

    if-gtz v4, :cond_3

    return v2

    .line 10
    :cond_3
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getWidth()I

    move-result v4

    iget v5, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->B:I

    sub-int/2addr v4, v5

    int-to-float v4, v4

    cmpl-float v3, v3, v4

    if-ltz v3, :cond_4

    return v2

    :cond_4
    and-int/lit16 v0, v0, 0xff

    if-eqz v0, :cond_e

    const/4 v3, -0x1

    if-eq v0, v1, :cond_c

    const/4 v4, 0x2

    if-eq v0, v4, :cond_5

    const/4 p1, 0x3

    if-eq v0, p1, :cond_c

    goto/16 :goto_1

    .line 11
    :cond_5
    iget v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->d:I

    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->findPointerIndex(I)I

    move-result v0

    if-ne v0, v3, :cond_6

    return v2

    .line 12
    :cond_6
    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getX(I)F

    move-result v3

    .line 13
    iget v4, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->f:F

    sub-float v4, v3, v4

    invoke-static {v4}, Ljava/lang/Math;->abs(F)F

    move-result v4

    float-to-int v4, v4

    .line 14
    invoke-virtual {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->f()Z

    move-result v5

    if-eqz v5, :cond_7

    iget v5, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->f:F

    cmpl-float v5, v3, v5

    if-lez v5, :cond_7

    return v2

    .line 15
    :cond_7
    invoke-virtual {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->e()Z

    move-result v5

    if-eqz v5, :cond_8

    iget v5, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->f:F

    cmpg-float v3, v3, v5

    if-gez v3, :cond_8

    return v2

    .line 16
    :cond_8
    invoke-virtual {p1, v0}, Landroid/view/MotionEvent;->getY(I)F

    move-result v0

    .line 17
    iget v3, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->g:F

    sub-float/2addr v0, v3

    invoke-static {v0}, Ljava/lang/Math;->abs(F)F

    move-result v0

    float-to-int v0, v0

    .line 18
    iget v3, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->h:I

    if-le v4, v3, :cond_9

    if-lt v4, v0, :cond_9

    const/4 v0, 0x1

    goto :goto_0

    :cond_9
    const/4 v0, 0x0

    :goto_0
    if-eqz v0, :cond_b

    .line 19
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getPointerCount()I

    move-result p1

    if-ne p1, v1, :cond_b

    .line 20
    iput v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->e:I

    .line 21
    iget-object p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->z:Lcom/estrongs/android/widget/RealViewSwitcher$b;

    if-eqz p1, :cond_a

    .line 22
    iget v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    invoke-interface {p1, v0}, Lcom/estrongs/android/widget/RealViewSwitcher$b;->a(I)V

    .line 23
    :cond_a
    iput-boolean v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->y:Z

    goto :goto_1

    .line 24
    :cond_b
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getScrollX()I

    move-result p1

    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getWidth()I

    move-result v0

    rem-int/2addr p1, v0

    if-eqz p1, :cond_11

    .line 25
    invoke-virtual {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->g()V

    goto :goto_1

    .line 26
    :cond_c
    iget-boolean p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->x:Z

    if-eqz p1, :cond_d

    iget-boolean p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->y:Z

    if-eqz p1, :cond_d

    return v1

    .line 27
    :cond_d
    iput v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->e:I

    .line 28
    iput v3, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->d:I

    .line 29
    iget-object p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->c:Landroid/view/VelocityTracker;

    if-eqz p1, :cond_11

    .line 30
    invoke-virtual {p1}, Landroid/view/VelocityTracker;->recycle()V

    const/4 p1, 0x0

    .line 31
    iput-object p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->c:Landroid/view/VelocityTracker;

    goto :goto_1

    .line 32
    :cond_e
    iget-boolean v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->x:Z

    if-eqz v0, :cond_f

    iget-boolean v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->y:Z

    if-eqz v0, :cond_f

    return v1

    .line 33
    :cond_f
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    .line 34
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v3

    .line 35
    iput v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->f:F

    .line 36
    iput v3, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->g:F

    .line 37
    invoke-virtual {p1, v2}, Landroid/view/MotionEvent;->getPointerId(I)I

    move-result p1

    iput p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->d:I

    .line 38
    iget-object p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->b:Landroid/widget/Scroller;

    invoke-virtual {p1}, Landroid/widget/Scroller;->isFinished()Z

    move-result p1

    if-nez p1, :cond_10

    .line 39
    iget-object p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->b:Landroid/widget/Scroller;

    invoke-virtual {p1}, Landroid/widget/Scroller;->abortAnimation()V

    .line 40
    iput-boolean v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->y:Z

    .line 41
    :cond_10
    iput v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->e:I

    .line 42
    :cond_11
    :goto_1
    iget p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->e:I

    if-eqz p1, :cond_12

    goto :goto_2

    :cond_12
    const/4 v1, 0x0

    :goto_2
    return v1
.end method

.method protected onLayout(ZIIII)V
    .locals 2

    .line 1
    iget-boolean p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->t:Z

    const/4 p2, 0x0

    if-eqz p1, :cond_0

    iget p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->m:I

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    .line 2
    :goto_0
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getChildCount()I

    move-result p3

    const/4 p4, 0x0

    :goto_1
    if-ge p4, p3, :cond_2

    .line 3
    invoke-virtual {p0, p4}, Landroid/widget/ViewAnimator;->getChildAt(I)Landroid/view/View;

    move-result-object p5

    if-nez p5, :cond_1

    goto :goto_2

    .line 4
    :cond_1
    invoke-virtual {p5, p2}, Landroid/view/View;->setVisibility(I)V

    .line 5
    invoke-virtual {p5}, Landroid/view/View;->getMeasuredWidth()I

    move-result v0

    add-int/2addr v0, p1

    .line 6
    invoke-virtual {p5}, Landroid/view/View;->getMeasuredHeight()I

    move-result v1

    invoke-virtual {p5, p1, p2, v0, v1}, Landroid/view/View;->layout(IIII)V

    move p1, v0

    :goto_2
    add-int/lit8 p4, p4, 0x1

    goto :goto_1

    :cond_2
    return-void
.end method

.method protected onMeasure(II)V
    .locals 2

    .line 1
    :try_start_0
    iget v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->m:I

    .line 2
    invoke-super {p0, p1, p2}, Landroid/widget/ViewAnimator;->onMeasure(II)V

    .line 3
    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result p1

    .line 4
    iput p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->m:I

    .line 5
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getChildCount()I

    move-result p1

    const/4 p2, 0x2

    const/4 v1, 0x0

    if-lt p1, p2, :cond_0

    .line 6
    iget-boolean p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->w:Z

    if-nez p1, :cond_1

    iget p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    if-ge p1, p2, :cond_1

    :cond_0
    iput-boolean v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->t:Z

    .line 7
    :cond_1
    iget-boolean p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->w:Z

    if-eqz p1, :cond_2

    .line 8
    iput-boolean v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->w:Z

    .line 9
    invoke-direct {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->h()V

    .line 10
    :cond_2
    iget-boolean p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->l:Z

    if-nez p1, :cond_3

    iget p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->m:I

    if-eq v0, p1, :cond_4

    .line 11
    :cond_3
    iget p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    invoke-direct {p0, p1}, Lcom/estrongs/android/widget/RealViewSwitcher;->c(I)I

    move-result p1

    invoke-virtual {p0, p1, v1}, Landroid/widget/ViewAnimator;->scrollTo(II)V

    .line 12
    iput-boolean v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->l:Z
    :try_end_0
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    :cond_4
    return-void
.end method

.method protected onScrollChanged(IIII)V
    .locals 1

    .line 1
    invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/ViewAnimator;->onScrollChanged(IIII)V

    .line 2
    iget p2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->m:I

    iget p4, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    mul-int p2, p2, p4

    const/4 p4, 0x1

    if-ne p1, p2, :cond_0

    if-eqz p3, :cond_2

    :cond_0
    iget p2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->m:I

    if-ne p1, p2, :cond_1

    iget v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    add-int/2addr v0, p4

    mul-int p2, p2, v0

    if-ne p3, p2, :cond_1

    goto :goto_0

    :cond_1
    const/4 p4, 0x0

    .line 3
    :cond_2
    :goto_0
    iget-object p2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->z:Lcom/estrongs/android/widget/RealViewSwitcher$b;

    if-eqz p2, :cond_4

    if-nez p4, :cond_4

    .line 4
    iget p2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    invoke-direct {p0, p2}, Lcom/estrongs/android/widget/RealViewSwitcher;->c(I)I

    move-result p2

    .line 5
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getWidth()I

    move-result p3

    if-nez p3, :cond_3

    return-void

    :cond_3
    sub-int/2addr p1, p2

    int-to-float p1, p1

    int-to-float p2, p3

    div-float/2addr p1, p2

    .line 6
    invoke-static {p1}, Ljava/lang/Float;->isNaN(F)Z

    move-result p2

    if-nez p2, :cond_4

    .line 7
    iget-object p2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->z:Lcom/estrongs/android/widget/RealViewSwitcher$b;

    iget p3, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    invoke-interface {p2, p3, p1}, Lcom/estrongs/android/widget/RealViewSwitcher$b;->a(IF)V

    :cond_4
    return-void
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 6

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->c:Landroid/view/VelocityTracker;

    if-nez v0, :cond_0

    .line 2
    invoke-static {}, Landroid/view/VelocityTracker;->obtain()Landroid/view/VelocityTracker;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->c:Landroid/view/VelocityTracker;

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->c:Landroid/view/VelocityTracker;

    invoke-virtual {v0, p1}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V

    .line 4
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    .line 5
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result p1

    if-nez v0, :cond_1

    .line 6
    iput p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->C:F

    .line 7
    :cond_1
    iget v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->C:F

    iget v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->A:I

    int-to-float v2, v2

    const/4 v3, 0x0

    cmpg-float v2, v1, v2

    if-gtz v2, :cond_2

    return v3

    .line 8
    :cond_2
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getWidth()I

    move-result v2

    iget v4, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->B:I

    sub-int/2addr v2, v4

    int-to-float v2, v2

    cmpl-float v1, v1, v2

    if-ltz v1, :cond_3

    return v3

    :cond_3
    const/4 v1, 0x1

    if-eqz v0, :cond_21

    const/4 v2, 0x0

    if-eq v0, v1, :cond_19

    const/4 v4, 0x2

    if-eq v0, v4, :cond_6

    const/4 p1, 0x3

    if-eq v0, p1, :cond_4

    goto/16 :goto_9

    .line 9
    :cond_4
    invoke-virtual {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->g()V

    .line 10
    iget-object p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->c:Landroid/view/VelocityTracker;

    if-eqz p1, :cond_5

    .line 11
    invoke-virtual {p1}, Landroid/view/VelocityTracker;->recycle()V

    .line 12
    iput-object v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->c:Landroid/view/VelocityTracker;

    .line 13
    :cond_5
    iput v3, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->e:I

    goto/16 :goto_9

    .line 14
    :cond_6
    iget v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->e:I

    if-eq v0, v1, :cond_b

    .line 15
    iget v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->f:F

    sub-float v0, p1, v0

    invoke-static {v0}, Ljava/lang/Math;->abs(F)F

    move-result v0

    float-to-int v0, v0

    .line 16
    invoke-virtual {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->f()Z

    move-result v2

    if-eqz v2, :cond_7

    iget v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->f:F

    cmpl-float v2, p1, v2

    if-lez v2, :cond_7

    return v3

    .line 17
    :cond_7
    invoke-virtual {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->e()Z

    move-result v2

    if-eqz v2, :cond_8

    iget v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->f:F

    cmpg-float v2, p1, v2

    if-gez v2, :cond_8

    return v3

    .line 18
    :cond_8
    iget v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->h:I

    if-le v0, v2, :cond_9

    const/4 v0, 0x1

    goto :goto_0

    :cond_9
    const/4 v0, 0x0

    :goto_0
    if-eqz v0, :cond_b

    .line 19
    iget-object v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->z:Lcom/estrongs/android/widget/RealViewSwitcher$b;

    if-eqz v0, :cond_a

    .line 20
    iget v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    invoke-interface {v0, v2}, Lcom/estrongs/android/widget/RealViewSwitcher$b;->a(I)V

    .line 21
    :cond_a
    iput-boolean v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->y:Z

    .line 22
    iput v1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->e:I

    .line 23
    :cond_b
    iget v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->e:I

    if-ne v0, v1, :cond_23

    .line 24
    iget v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->f:F

    sub-float/2addr v0, p1

    float-to-int v0, v0

    .line 25
    iput p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->f:F

    .line 26
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getScrollX()I

    move-result p1

    add-int v2, p1, v0

    .line 27
    iget v4, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    invoke-direct {p0, v4}, Lcom/estrongs/android/widget/RealViewSwitcher;->c(I)I

    move-result v4

    if-ge v2, v4, :cond_c

    .line 28
    iget-boolean v5, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->r:Z

    if-nez v5, :cond_c

    return v1

    :cond_c
    if-le v2, v4, :cond_d

    .line 29
    iget-boolean v4, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->s:Z

    if-nez v4, :cond_d

    return v1

    :cond_d
    if-gez v0, :cond_10

    if-lez p1, :cond_16

    .line 30
    iget-boolean v4, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->t:Z

    if-eqz v4, :cond_f

    .line 31
    invoke-direct {p0, v3}, Lcom/estrongs/android/widget/RealViewSwitcher;->c(I)I

    move-result v4

    if-ge v2, v4, :cond_e

    .line 32
    iget-boolean v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->u:Z

    if-nez v2, :cond_f

    .line 33
    invoke-direct {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->k()V

    goto :goto_1

    .line 34
    :cond_e
    invoke-direct {p0, v1}, Lcom/estrongs/android/widget/RealViewSwitcher;->c(I)I

    move-result v4

    if-ge v2, v4, :cond_f

    iget-boolean v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->v:Z

    if-eqz v2, :cond_f

    .line 35
    invoke-direct {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->l()V

    :cond_f
    :goto_1
    neg-int p1, p1

    .line 36
    invoke-static {p1, v0}, Ljava/lang/Math;->max(II)I

    move-result p1

    invoke-virtual {p0, p1, v3}, Landroid/widget/ViewAnimator;->scrollBy(II)V

    goto :goto_4

    :cond_10
    if-lez v0, :cond_16

    .line 37
    iget-boolean v4, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->t:Z

    if-eqz v4, :cond_12

    .line 38
    iget v4, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    sub-int/2addr v4, v1

    invoke-direct {p0, v4}, Lcom/estrongs/android/widget/RealViewSwitcher;->c(I)I

    move-result v4

    if-le v2, v4, :cond_11

    .line 39
    iget-boolean v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->v:Z

    if-nez v2, :cond_12

    .line 40
    invoke-direct {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->j()V

    goto :goto_2

    .line 41
    :cond_11
    iget v4, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    sub-int/2addr v4, v1

    invoke-direct {p0, v4}, Lcom/estrongs/android/widget/RealViewSwitcher;->c(I)I

    move-result v4

    iget v5, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->m:I

    sub-int/2addr v4, v5

    if-le v2, v4, :cond_12

    iget-boolean v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->u:Z

    if-eqz v2, :cond_12

    .line 42
    invoke-direct {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->m()V

    .line 43
    :cond_12
    :goto_2
    :try_start_0
    iget v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    if-lez v2, :cond_15

    .line 44
    iget-boolean v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->v:Z

    if-eqz v2, :cond_13

    .line 45
    invoke-virtual {p0, v3}, Landroid/widget/ViewAnimator;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v2}, Landroid/view/View;->getRight()I

    move-result v2

    goto :goto_3

    :cond_13
    iget-boolean v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->u:Z

    if-eqz v2, :cond_14

    iget v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    sub-int/2addr v2, v1

    .line 46
    invoke-direct {p0, v2}, Lcom/estrongs/android/widget/RealViewSwitcher;->c(I)I

    move-result v2

    iget v4, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->m:I

    add-int/2addr v2, v4

    goto :goto_3

    :cond_14
    iget v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    sub-int/2addr v2, v1

    .line 47
    invoke-virtual {p0, v2}, Landroid/widget/ViewAnimator;->getChildAt(I)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v2}, Landroid/view/View;->getRight()I

    move-result v2
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_3

    :catch_0
    move-exception v2

    .line 48
    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V

    :cond_15
    const/4 v2, 0x0

    :goto_3
    sub-int/2addr v2, p1

    .line 49
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getWidth()I

    move-result p1

    sub-int/2addr v2, p1

    if-lez v2, :cond_16

    .line 50
    invoke-static {v2, v0}, Ljava/lang/Math;->min(II)I

    move-result p1

    invoke-virtual {p0, p1, v3}, Landroid/widget/ViewAnimator;->scrollBy(II)V

    .line 51
    :cond_16
    :goto_4
    iget-object p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->z:Lcom/estrongs/android/widget/RealViewSwitcher$b;

    if-eqz p1, :cond_23

    .line 52
    iget p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->m:I

    .line 53
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getScrollX()I

    move-result v0

    div-int/lit8 v2, p1, 0x2

    add-int/2addr v0, v2

    div-int/2addr v0, p1

    .line 54
    iget-boolean p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->t:Z

    if-eqz p1, :cond_18

    add-int/lit8 v0, v0, -0x1

    if-gez v0, :cond_17

    .line 55
    iget p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    add-int/lit8 v3, p1, -0x1

    goto :goto_5

    .line 56
    :cond_17
    iget p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    if-lt v0, p1, :cond_18

    goto :goto_5

    :cond_18
    move v3, v0

    .line 57
    :goto_5
    iget p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->o:I

    if-eq p1, v3, :cond_23

    iget p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    if-ge v3, p1, :cond_23

    if-ltz v3, :cond_23

    .line 58
    iput v3, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->o:I

    goto/16 :goto_9

    .line 59
    :cond_19
    iget p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->e:I

    if-ne p1, v1, :cond_20

    .line 60
    iget-object p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->c:Landroid/view/VelocityTracker;

    const/16 v0, 0x3e8

    .line 61
    iget v4, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->a:F

    invoke-virtual {p1, v0, v4}, Landroid/view/VelocityTracker;->computeCurrentVelocity(IF)V

    .line 62
    invoke-virtual {p1}, Landroid/view/VelocityTracker;->getXVelocity()F

    move-result p1

    float-to-int p1, p1

    const/16 v0, 0x320

    if-le p1, v0, :cond_1c

    .line 63
    iget-boolean v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->t:Z

    if-eqz v0, :cond_1a

    iget v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    if-ltz v0, :cond_1c

    goto :goto_6

    :cond_1a
    iget v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    if-lez v0, :cond_1c

    .line 64
    :goto_6
    :try_start_1
    iget p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    invoke-virtual {p0, p1}, Landroid/widget/ViewAnimator;->getChildAt(I)Landroid/view/View;

    move-result-object p1

    invoke-virtual {p1}, Landroid/view/View;->getLeft()I

    move-result p1
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    .line 65
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getScrollX()I

    move-result v0

    if-le p1, v0, :cond_1b

    .line 66
    iget p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    sub-int/2addr p1, v1

    invoke-virtual {p0, p1}, Lcom/estrongs/android/widget/RealViewSwitcher;->a(I)V

    goto :goto_8

    .line 67
    :cond_1b
    invoke-virtual {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->g()V

    goto :goto_8

    :catch_1
    move-exception p1

    .line 68
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    .line 69
    invoke-virtual {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->g()V

    return v1

    :cond_1c
    const/16 v0, -0x320

    if-ge p1, v0, :cond_1f

    .line 70
    iget-boolean p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->t:Z

    if-eqz p1, :cond_1d

    iget p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    iget v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    if-ge p1, v0, :cond_1f

    goto :goto_7

    :cond_1d
    iget p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    iget v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->n:I

    sub-int/2addr v0, v1

    if-ge p1, v0, :cond_1f

    .line 71
    :goto_7
    :try_start_2
    iget p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    invoke-virtual {p0, p1}, Landroid/widget/ViewAnimator;->getChildAt(I)Landroid/view/View;

    move-result-object p1

    invoke-virtual {p1}, Landroid/view/View;->getLeft()I

    move-result p1
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2

    .line 72
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->getScrollX()I

    move-result v0

    if-ge p1, v0, :cond_1e

    .line 73
    iget p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    add-int/2addr p1, v1

    invoke-virtual {p0, p1}, Lcom/estrongs/android/widget/RealViewSwitcher;->a(I)V

    goto :goto_8

    .line 74
    :cond_1e
    invoke-virtual {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->g()V

    goto :goto_8

    :catch_2
    move-exception p1

    .line 75
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    .line 76
    invoke-virtual {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->g()V

    return v1

    .line 77
    :cond_1f
    invoke-virtual {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->g()V

    .line 78
    :goto_8
    iget-object p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->c:Landroid/view/VelocityTracker;

    if-eqz p1, :cond_20

    .line 79
    invoke-virtual {p1}, Landroid/view/VelocityTracker;->recycle()V

    .line 80
    iput-object v2, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->c:Landroid/view/VelocityTracker;

    .line 81
    :cond_20
    iput v3, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->e:I

    goto :goto_9

    .line 82
    :cond_21
    iget-boolean p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->x:Z

    if-eqz p1, :cond_22

    iget-boolean p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->y:Z

    if-eqz p1, :cond_22

    .line 83
    iget p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    iput p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->o:I

    return v1

    .line 84
    :cond_22
    iget p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->i:I

    iput p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->o:I

    :cond_23
    :goto_9
    return v1
.end method

.method public removeViewAt(I)V
    .locals 1

    const/4 v0, -0x2

    .line 1
    iput v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->k:I

    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->w:Z

    .line 3
    invoke-super {p0, p1}, Landroid/widget/ViewAnimator;->removeViewAt(I)V

    .line 4
    invoke-direct {p0}, Lcom/estrongs/android/widget/RealViewSwitcher;->h()V

    .line 5
    invoke-virtual {p0}, Landroid/widget/ViewAnimator;->requestLayout()V

    return-void
.end method

.method public setCurrentScreen(I)V
    .locals 1

    const/4 v0, 0x1

    .line 1
    invoke-virtual {p0, p1, v0}, Lcom/estrongs/android/widget/RealViewSwitcher;->a(IZ)V

    return-void
.end method

.method public setLeftSlideLock(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->E:Z

    return-void
.end method

.method public setOnScreenSwitchListener(Lcom/estrongs/android/widget/RealViewSwitcher$b;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->z:Lcom/estrongs/android/widget/RealViewSwitcher$b;

    return-void
.end method

.method public setRightSlideLock(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->D:Z

    return-void
.end method

.method public setSwitchControlable(Z)V
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/estrongs/android/widget/RealViewSwitcher;->x:Z

    return-void
.end method
